package com.baizhi.service.impl;

import com.baizhi.annotation.CmfzLogAnnotation;
import com.baizhi.dao.CmfzMenuDao;
import com.baizhi.entity.CmfzMenu;
import com.baizhi.service.CmfzMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2019/4/3 0003.
 */
@Service
public class CmfzMenuServiceImpl implements CmfzMenuService{
    @Autowired
    private CmfzMenuDao cmfzMenuDao;

    @CmfzLogAnnotation("菜单加载！")
    @Override
    public List<CmfzMenu> queryMenu() {
        List<CmfzMenu> cmfzMenus = cmfzMenuDao.queryMenu();
        return cmfzMenus;
    }
}
